<?php

namespace app\staff\controller;

use app\admin\model\Staff;
use app\common\controller\Api;
use app\common\controller\StaffApi;
use app\common\model\Order as OrderModel;
use app\common\model\StoreProject as StoreProjectModel;

/**
 * 项目接口
 */
class Project extends Api
{
    protected $noNeedRight = ['*'];

    //项目列表
    public function lists()
    {
        $order_id = input('order_id',0);
        if (empty($order_id)){
            $this->error('缺少参数订单id');
        }
        $order_info = OrderModel::get($order_id);

        $list = StoreProjectModel::where(['store_id'=>$order_info['store_id']])->select();
        $this->success('请求成功',$list);
    }

}